s = input()
x1 = (s[0])
x2 = (s[1])
x3 = (s[2])
x4 = (s[3])
x13 = (s[0:2])
x37 = (s[1:3])
x79 = (s[2:4])
x137 = (s[0:3])
x379 = (s[1:4])
x1379 = (s)
print(x1, x2, x3, x4, x13, x37, x79, x137, x379, x1379)